package buildings.office;

import buildings.Floor;
import java.io.Serializable;

public class OfficeFloorNode implements Serializable, Cloneable {
    private Floor element;
    private OfficeFloorNode next;
    private OfficeFloorNode prev;

    public OfficeFloorNode(Floor element) {
        this.element = element;
        next = null;
        prev = null;
    }
    
    public Floor getElement() {
        return element;
    }
    
    public OfficeFloorNode getNext() {
        return next;
    }
    
    public OfficeFloorNode getPrev() {
        return prev;
    }
    
    public void setElement(Floor element) {
        this.element = element;
    }
    
    public void setNext(OfficeFloorNode next) {
        this.next = next;
    }
    
    public void setPrev(OfficeFloorNode prev) {
        this.prev = prev;
    }

    public Object clone() throws CloneNotSupportedException {
        Object result = super.clone();
        ((OfficeFloorNode)result).element = (Floor)element.clone();
        ((OfficeFloorNode)result).next = (OfficeFloorNode)next.clone();
        ((OfficeFloorNode)result).prev = (OfficeFloorNode)prev.clone();
        return result;
    }
    
    
}
